package com.qsd.TeacherSystem.Service.impl;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qsd.TeacherSystem.Service.StudentService;
import com.qsd.TeacherSystem.dao.StudentDao;
import com.qsd.common.po.Student;

import javax.annotation.Resource;

@Slf4j
@Service
public class StudentServiceImpl implements StudentService {

    @Resource
    private StudentDao studentDao;

    @Override
    public Student info(String username) {
        log.info("根据学生姓名查询学生信息");
        return studentDao.queryStudentByUsername(username);
    }

}
